package com.miszczu.utils;

public class PathFinder {
	
	public static String getPathFromRole(String role) {
		
		String path = null;
		
		if(role.equals("ROLE_PARENT")) {
			path = "/auth/welcome";
		} else if(role.equals("ROLE_TEACHER")) {
			path = "/teacher/welcome";
		} else if(role.equals("ROLE_ADMIN")) {
			path = "/admin/welcome";
		}
		
		return path;
	}
	
}
